package com.itheima.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

public class PetQueryParam {
    private Integer page = 1; //页码
    private Integer pageSize = 10; //每页展示记录数
    private String name; //名字
    private Integer gender; //性别
    private Integer species;//宠物物种
    private Integer age;//宠物年龄
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin; //入店开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end; //离店结束时间


    public PetQueryParam() {
    }

    public PetQueryParam(Integer page, Integer pageSize, String name, Integer gender, Integer species, Integer age, LocalDate begin, LocalDate end) {
        this.page = page;
        this.pageSize = pageSize;
        this.name = name;
        this.gender = gender;
        this.species = species;
        this.age = age;
        this.begin = begin;
        this.end = end;
    }

    /**
     * 获取
     * @return page
     */
    public Integer getPage() {
        return page;
    }

    /**
     * 设置
     * @param page
     */
    public void setPage(Integer page) {
        this.page = page;
    }

    /**
     * 获取
     * @return pageSize
     */
    public Integer getPageSize() {
        return pageSize;
    }

    /**
     * 设置
     * @param pageSize
     */
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return gender
     */
    public Integer getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(Integer gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return species
     */
    public Integer getSpecies() {
        return species;
    }

    /**
     * 设置
     * @param species
     */
    public void setSpecies(Integer species) {
        this.species = species;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取
     * @return begin
     */
    public LocalDate getBegin() {
        return begin;
    }

    /**
     * 设置
     * @param begin
     */
    public void setBegin(LocalDate begin) {
        this.begin = begin;
    }

    /**
     * 获取
     * @return end
     */
    public LocalDate getEnd() {
        return end;
    }

    /**
     * 设置
     * @param end
     */
    public void setEnd(LocalDate end) {
        this.end = end;
    }

    public String toString() {
        return "PetQueryParam{page = " + page + ", pageSize = " + pageSize + ", name = " + name + ", gender = " + gender + ", species = " + species + ", age = " + age + ", begin = " + begin + ", end = " + end + "}";
    }
}
